projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a253c5
)
gtkplacessidebar: remove unneeded condition
author
Carlos Soriano
<csoriano@gnome.org>
Thu, 18 Feb 2016 09:53:35 +0000
(10:53 +0100)
committer
Carlos Soriano
<csoriano@gnome.org>
Thu, 18 Feb 2016 14:32:54 +0000
(15:32 +0100)
We check for it before anyway, and in this case make sense to show the
eject button in both cases.
gtk/gtkplacessidebar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacessidebar.c
b/gtk/gtkplacessidebar.c
index e6dfbc22be28c86e26d7dfd9e6e84a6ab03e4133..5e74d99aec62eeaf0d93dd333345a25846cf6930 100644
(file)
--- a/
gtk/gtkplacessidebar.c
+++ b/
gtk/gtkplacessidebar.c
@@
-451,10
+451,7
@@
add_place (GtkPlacesSidebar *sidebar,
if (show_unmount || show_eject)
g_assert (place_type != PLACES_BOOKMARK);
- if (mount == NULL)
- show_eject_button = FALSE;
- else
- show_eject_button = (show_unmount || show_eject);
+ show_eject_button = (show_unmount || show_eject);
tooltip_escaped = g_markup_escape_text (tooltip, -1);
row = g_object_new (GTK_TYPE_SIDEBAR_ROW,